09. Jupyter Notebooks
Jupyter Notebooks
For the next exercise, and many more to come, we'll be using Jupyter notebooks embedded right in your browser. These notebooks are a great way to test code, plot up results and add notes, links and other supporting documentation right alongside your code in markdown cells.
If you haven't used Jupyter notebooks before, check out this free Udacity lesson as a way to get started. If you're interested, you can also check out the detailed docs on notebooks and all their functionality.
Notebooks in the classroom will look like this:
You can select a cell by clicking on it, or by using the arrow keys to move up and down between cells. To run a cell either use shift-enter
or click the "run" button in the toolbar. To add a new cell use the "+" icon and choose to make it code or markdown using the pulldown menu in the toolbar. To edit the contents of a markdown (text) cell, double click on it. You can download the entire notebook by selecting "File --> download as".
To see what else is in the directory containing the notebook (like a solution notebook or other supporting files), you can click on the Jupyter icon to show the contents of the home directory:
If at any point you get a 404 error in your notebook that looks like this:
This most likely means that the notebook has been replaced with an updated version and you need to "Reset data" using the menu in the lower lefthand corner:
And with that you're ready to start using Jupyter notebooks to perform breadth-first search in the next exercise!